Repository navigation
fix(deps): update all dependencies - #341
Merged
Merged
Conversation
|
|
renovate
Bot
force-pushed
the
renovate/all
branch
2 times, most recently
from
October 4, 2026 20:30
6a6dce6 to
f596a0a
Compare
renovate
Bot
force-pushed
the
renovate/all
branch
6 times, most recently
from
October 15, 2026 13:41
217bb98 to
662119d
Compare
renovate
Bot
force-pushed
the
renovate/all
branch
2 times, most recently
from
October 27, 2026 23:30
0aee0b3 to
b30337c
Compare
renovate
Bot
force-pushed
the
renovate/all
branch
from
October 28, 2026 01:03
b30337c to
62e5bd6
Compare
Signed-off-by: Norbert Biczo <pyrooka@users.noreply.github.com>
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
ibm-devx-sdk
pushed a commit
that referenced
this pull request
Oct 29, 2026
## [0.77.2](v0.77.1...v0.77.2) (2026-10-29) ### Bug Fixes * **deps:** update all dependencies ([#341](#341)) ([3a97f5d](3a97f5d))
|
🎉 This PR is included in version 0.77.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
>=26.5.1,<26.6.0→>=26.10.1,<26.11.024→26>=4.0.7,<4.1.0→>=4.1.3,<4.2.0>=9.1.1,<9.2.0→>=9.2.0,<9.3.0Release Notes
psf/black (black)
v26.10.1Compare Source
Highlights
This release fixes a security issue in Black's bundled GitHub Action. Repositories that
use the action are encouraged to update to the latest version of Black immediately. This
update is received automatically when using
psf/black@stable, and is independent ofthe version of Black installed by the action.
When the GitHub Action reads version specifiers from
tool.black.required-version, itnow only accepts released versions of Black, as it already did for
blackrequirementsin dependency lists. Other values, such as URL references, are now rejected. This issue
has been registered as
GHSA-cg8m-r9f2-5wm2; a CVE identifier is pending.Stable style
x = !ls -la) being wrappedin parentheses, which IPython can no longer run; such cells are now left unchanged
(#5481)
--line-rangesunchanged (#5436)--line-rangesformatting lines that follow a statement when formatting joins orre-indents that statement (#5484)
--line-rangescrashing with an internal error when an unselected statement has a# fmt: skipcomment on the last line before a closing bracket (#5477)# -*- coding: latin-1 -*-) ontothe first two lines of a file (#5487)
last line is near the line length limit (#5494)
{(x := f())}) when targeting Python 3.9 or older, since Python 3.8 and 3.9.0 can'tparse it without them (#5502)
Preview style
or comprehensions) inside brackets when preceded by a standalone comment (#5455)
string_processingfeature removing backslash-newline sequences fromraw strings, which changed their value (#5482)
assignments (such as annotated assignments or subscript targets) (#5473)
under
--preview(#5442)wrap_long_dict_values_in_parensdropping the parentheses around a right-handside that contains a dictionary, leaving a line over the length limit (#5492)
string_processingfeature adding a space after*or**in a PEP695 type parameter (
* Ts = ...) when it splits a string in the parameter's default(#5504)
earlier bracket split exceeds the line length only due to a trailing comment (#5498)
Configuration
--cache-dirto configure the cache directory from the command line (#5433)--line-ranges,which made a later full
black --checkpass andblackskip the unformatted lines(#5476)
.gitignorethat starts with a UTF-8 byte order mark. The mark became partof the first pattern, so that pattern never matched and Black formatted files that git
ignores (#5497)
Performance
pairs (such as consecutive subscripts) (#5475)
Integrations
use_pyprojectisenabled (#5479)
tool.black.required-version, itnow only accepts released versions of Black, as it already did for
blackrequirements in dependency lists. Other values, such as URL references, are now
rejected. (#5510)
v26.10.0Compare Source
Stable style
--line-rangesno longer inserts an empty line after a docstring when the rangecovers only the docstring itself (#5312)
# fmt: skipon a bracketed ternary turning the surrounding tuple into a call(#5464)
# fmt: skipis placed on a one-line function or class with PEP 695type parameters (#5429)
inside the parentheses when the parenthesized expression contains own-line comments
(#5395)
# fmt: skipis placed on a bracket of anif,while,for, orwithheader (#5401, #5405)# fmt: skip(#5414)earlier on the line (#5381)
# fmt: oncomment (#5300)(x): int = 5), which prevent CPython from including the name in__annotations__(#5321)
t" spam "asthe first statement of a module, class or function) (#5287)
t'\'{a["b"]}\'') (#5265)already-escaped double quote (e.g.
'''\'''\"''') (#5262)--skip-magic-trailing-commadropping the trailing comma from a splitsingle-element tuple used as a lambda parameter default (#5246)
parenthesized assert message) (#5241)
--skip-magic-trailing-commadropping the trailing comma of a one-elementsubscript (
a[x,]) when the line is long enough to be split and contains a poweroperator (#5272)
(#5144)
*TypeVarTupleor**ParamSpec(#5244)# fmt: off/# fmt: onblock is followed by awithstatement after another standalone comment (#5189)
case case if ...match patterns at very small linelengths (#5147)
docstrings (#5148)
# fmt: skipon a line that opens a bracket (e.g.from x import ( # fmt: skip) when a standalone comment is among the bracket'scontents (#5161)
# type: ignorecomments in a parenthesizedattribute chain were merged onto one physical line (#5297)
--line-ranges(#5175)# fmt: skipis used on one-lineasync def,async with, andasync forstatements containing a semicolon (#5311)(#5461)
--skip-source-first-lineturning the skipped line's CRLF ending into\r\r\nwhen reformatting a file with CRLF line endings (#5438)
Preview style
New preview features
(e.g. stop splitting inside the
[2]of[1,][2](3)) (#5448)wrapped onto a new line instead (#5435)
for (x), (y) in points:becomesfor x, y in points:) (#5416)Tprefixes on t-strings to lowercase (#5425)# fmt: offblockafter an import (#5238)
(e.g.
x[key] = expr) (#5095)yieldstatements for consistency with functioncalls and returns (#5170)
not in,==,is, ...) whenthe right-hand side is a bracketed expression, and instead split inside the brackets
(#5135)
.pyistub files, enforce a blank line after a function or method that has adocstring-only body when another comment or statement follows it (#5158)
Updates to existing preview features
# fmt: skipis placed on a function in a group ofsame-name decorated functions (e.g.
@overloads or a property setter) (#5430)[x for x in (lambda: 0) if x]) (#5176, #5200)Updates to existing unstable features
# type: ignorecomments as single-line unsplittable expressions (#5466)
merging a backslash-continued string on the same line (#5449)
(#5427)
# type: ignorecomments onto oneline (#5271)
# type: ignoreis lost during formatting of a long parenthesizedstring (#5329)
r"..." r"...") being wrapped in parentheses (#5434)Configuration
NO_COLORenvironment variable to disable ANSI output (#5129)--target-versionflag (#5167)--force-excludenot excluding files whose path contains..(e.g.black ../generated/file.pyrun from a subdirectory) (#5471)no common project root (e.g. they are on different drives on Windows) instead of
crashing (#5386)
pyproject.tomlpath when--codeis used from differentworking directories in the same process (#5152)
--line-rangesvalues (#5107)EOFError(#5192)includeandforce-excludevalues inpyproject.toml(#5193)BLACK_NUM_WORKERSvalues and report invalid values as usage errors insteadof crashing (#5211)
Packaging
PyInstaller release build (#5223)
Immutable Releases
(#5296)
Performance
# fmt: skip/# fmt: off/# fmt: oncomments(#5169, #5190, #5232)
with triple-quoted strings as values) (#5188)
match/caseblocks)(#5186)
large dict literals (in
--preview) (#5184)--line-rangeson files with many sibling blocks (a longif/elifchain, amatchwith many cases, or many top-level definitions) (#5213)operators (e.g. a long run of implicitly concatenated strings inside
[]) (#5239)a ** b ** c ** ...chain) (#5235)
if/elifchains and other compound statements with manyclauses (#5322)
string_processing:(#5165)
"%s ..." % (a, b, c, ...)) (#5178, #5199, #5220)Output
path:line:columnlocations (#5237)sys.stdoutthat has nobufferattribute (e.g. in Jupyter notebooks) (#5411)
Blackd
X-Python-Variantheader is empty or has anempty entry (e.g. a trailing comma) (#5428)
pyiin theX-Python-Variantheader (#5441)Integrations
migrate-blackscript (#5319)tool.black.required-versionfor the GitHubAction (#5399)
is_formatted,change_count,same_count,failure_count) to GitHubAction runs (#5408)
Documentation
vim-python-pep8-indent, which provides anindentexprfor Black-styleinsert-mode indentation (#5288)
actions/node-versions (node)
v26.13.0: 26.13.0Compare Source
Node.js 26.13.0
v26.12.1: 26.12.1Compare Source
Node.js 26.12.1
v26.12.0: 26.12.0Compare Source
Node.js 26.12.0
v26.11.1: 26.11.1Compare Source
Node.js 26.11.1
v26.11.0: 26.11.0Compare Source
Node.js 26.11.0
v26.10.0: 26.10.0Compare Source
Node.js 26.10.0
v26.9.0: 26.9.0Compare Source
Node.js 26.9.0
v26.8.2: 26.8.2Compare Source
Node.js 26.8.2
v26.8.1: 26.8.1Compare Source
Node.js 26.8.1
v26.8.0: 26.8.0Compare Source
Node.js 26.8.0
v26.7.0: 26.7.0Compare Source
Node.js 26.7.0
v26.6.0: 26.6.0Compare Source
Node.js 26.6.0
v26.5.1: 26.5.1Compare Source
Node.js 26.5.1
v26.5.0: 26.5.0Compare Source
Node.js 26.5.0
v26.4.0: 26.4.0Compare Source
Node.js 26.4.0
v26.3.1: 26.3.1Compare Source
Node.js 26.3.1
v26.3.0: 26.3.0Compare Source
Node.js 26.3.0
v26.2.0: 26.2.0Compare Source
Node.js 26.2.0
v26.1.0: 26.1.0Compare Source
Node.js 26.1.0
v26.0.0: 26.0.0Compare Source
Node.js 26.0.0
pylint-dev/pylint (pylint)
v4.1.3Compare Source
What's new in Pylint 4.1.3?
Release date: 2026-10-11
False Positives Fixed
Fixed a false positive for
attribute-defined-outside-initwhen anattribute is assigned inside the setter of an old-style, non-decorator
property(fget, fset)call. The decorator form (@property/@x.setter) was already exempted by the fix for #409; the classiccall form was not.
Closes #3325
Fix a false positive for
used-before-assignmentwhen a name bound by an earliertarget of the same assignment is used by a later target, as in
a = b[a] = 0.Closes #5955
Fix a
no-memberfalse positive in a comprehension inside a branch thatcannot run, such as
if sys.platform == "win32":on Linux. Like the rest ofthe branch, the comprehension is no longer checked for missing members.
Closes #7240
Fix a false positive for
used-before-assignmentwhen a name bound by a tupleor list target of a
withitem is used by a later item of the samewithstatement.Closes #7545
Fix false positives such as
not-callable,not-an-iterable,unpacking-non-sequenceandno-memberon the result of a function whosebody is only
..., like@overloadand.pyistubs. Such calls wereinferred as returning
None. This affectedsqlalchemy.func,pydantic.Field, and thetorchfunctions wrapped by_add_docstr,such as
torch.linalg.qr.Closes #8138
Closes #9218
Closes #9354
Closes #10087
Fix a false positive for
protected-accesswhen a subclass of a subscriptedgeneric base, such as
class Child(Parent[T]), accesses a protected memberthrough that base, such as
Parent._foo(self).Closes #8600
Avoid emitting
unreachablefor ayieldimmediately afterraiseorsys.exit()that marks a function as a generator, matching the existinghandling of
return.Closes #8909
Fix a false positive for
super-init-not-calledin.pyistub files, whereevery
__init__body is...and cannot call the parent's__init__.Closes #9096
Fix a false positive for
possibly-used-before-assignmentwhen a lambdauses its parameters, including from a nested lambda, and that name is assigned
later in the module.
Closes #9126
Fix a false positive for
useless-parent-delegationwhen a keyword-onlyparameter is passed to the parent under the same keyword but with a different value.
Closes #9226
Fix a false positive for
unused-argumentin.pyistub files, wherefunction bodies are
...and cannot use their arguments.Closes #9417
Fix a false positive for
used-before-assignmentwhen a name assigned with anassignment expression in the condition of a comprehension is used in its element,
for example
[y for x in data if (y := f(x))].Closes #9460
Fixed false positive
arguments-differandsignature-differsfortyping.overloadstubs. Overload stubs in a subclass are no longer comparedto the overridden method, and an overridden method with overloads is compared
through its implementation instead of its first stub.
Closes #10186
Closes #5264
Stop emitting
redefined-variable-typewhen the bare_variable isreused to discard values of different types.
Closes #10374
Allow the
__main__module name in thecamelCase,PascalCaseandUPPER_CASEnaming styles without reportinginvalid-name.Closes #10442
Fixed a false positive for
unexpected-keyword-argwhen a decorator thatreturns its argument unchanged is stacked above a decorator accepting
**kwargs.Closes #10831
Fix
invalid-namefalse positives for module-level all-caps aliases thatpreserve the name of an external callable.
Closes #11012
redefined-builtinno longer warns for method parameters that retain abuilt-in name from an overridden method.
Closes #11438
Fixed a false positive for
useless-suppressionofline-too-longwhen a#inside a string literal comes before the# pylint: disable=line-too-longcomment.Closes #11440
Fix a false positive for
unnecessary-ellipsiswhen an ellipsis is thesole body statement of a
Protocolmethod defined inside a conditional blocksuch as
if TYPE_CHECKING:.Closes #11459
Fix a false positive for
unnecessary-negationwhen negating a comparisonbetween instances of a
setorfrozensetsubclass.Refs #11513
Other Bug Fixes
Fix
pyreversehanging or crashing with aRecursionErrorwhen--all-associated(-S) follows an attribute whose inferred class is rebuilt byastroid on every inference, such as a
numpyarray.Closes #3602
Fix a crash in
pyreversewhen a diagram includes a class created bynamedtuple, or anargparse.Namespace.Closes #10767
The "difference" column of the "Messages by category" and "Duplication" reports
(
--reports=y) now shows the change since the previous run instead of repeatingthe previous count.
Closes #11520
Fixed
nested-min-maxsuggesting a non-equivalent rewrite when an innermin/maxcall had multiple arguments.Refs #11593
Using several output formats that all write to stdout (for example
--output-format=colorized,no-header)now raises an error instead of printing every message more than once.
Closes #11597
Fixed an
IndexErrorcrash in the typecheck checker when anEnumclass defines an__init__method without arguments.Closes #11608
Fix a crash in the
duplicate-codechecker whenmin-similarity-linesis set to0.The checker is now disabled in that case, as documented.
Closes #11625
v4.1.2Compare Source
What's new in Pylint 4.1.2?
Release date: 2026-10-03
False Positives Fixed
Fixed a false positive
unbalanced-tuple-unpackingwhen unpacking a tupleconcatenation whose elements have several possible values.
Fixed by upgrading astroid to 4.3.3.
Closes #2621
Other Bug Fixes
Fixed a crash when calling
__bases__on a class.Fixed by upgrading astroid to 4.3.3.
Closes #11491
Fix a crash (
astroid-error) when the class of a called attribute cannotbe fully inferred, for example when the attribute is used as a
withstatement target or inside a comprehension.
Closes #11492
Fix a crash when a name bound by a
typestatement (a TypeVar) is used in awithstatement.Closes #11510
Fixed a crash (
TypeError) in the variables checker when checking a classwhose metaclass name binding has no line number, for example a class defined
with
metaclass=__annotations__.Closes #11511
Fix a crash in the
using-final-decorator-in-unsupported-versioncheckwhen
import finalis used.Closes #11521
Fix a crash when a plugin passes
confidence=Nonetoadd_message, aspylint-pytestdoes, for a message that is disabled.confidence=Noneisaccepted again and means
UNDEFINED, like in pylint 4.0. Passing itexplicitly to
add_message,add_ignored_messageorMessagenow emits aDeprecationWarning: it will raise an error in pylint 5.0.Closes #11530
v4.1.1Compare Source
What's new in Pylint 4.1.1?
Release date: 2026-09-29
Other Changes
Pylint 4.1.0 could not be uploaded to PyPI, because it required an unreleased
version of
dillon Python 3.15, and PyPI refuses such a dependency. 4.1.1 isthe first 4.1 release available on PyPI, see the 4.1.0 changes below.
Refs #11495
pytest-dev/pytest (pytest)
v9.2.0Compare Source
pytest 9.2.0 (2026-10-27)
Removals and backward incompatible breaking changes
#14716:
-cnow raises a usage error for a path that does not exist, is a directory, or is in a format pytest has no loader for. Such paths were previously either ignored or reported as an unhandledFileNotFoundError.#8593: The
indirect,idsandscopearguments ofMetafunc.parametrize() <pytest.Metafunc.parametrize>-- and therefore of@pytest.mark.parametrize <pytest.mark.parametrize ref>-- are now keyword-only.Passing them positionally was a common source of confusing errors, e.g.
parametrize("arg1", "arg2", [(1, 2)])made the argvalues land inindirectand failed withindirect fixture '(1, 2)' doesn't exist; such mistakes now fail with an understandableTypeError. The type annotations have always declared these arguments as keyword-only.#993: Plugin import failures at startup are now reported and classified instead of escaping as a raw traceback with the accidental exit code
1:-p,pytest_pluginsorPYTEST_PLUGINS-- exits withpytest.ExitCodeUSAGE_ERROR(4), like aconftest.pythat fails to import;pytest11entry point or a missing plugin dependency -- exits withpytest.ExitCodeINTERNAL_ERROR(3), with the traceback preserved.pytest.mainnow returns these codes instead of raisingImportError. Also fixed anIndexErrorfrom pytest's own internals when the plugin raised an exception with no arguments.Deprecations (removal in next major release)
#14742: The private
_pytest.python.CallSpec2name has been renamed toCallSpec.The old
CallSpec2alias remains available for now and will be removed in pytest 10 or 11.#14755: Schedule yield_fixture decorator for removal in pytest 10 or 11.
#14774: Similarly to the deprecation of class-scoped fixtures defined as instance methods in pytest 9.1,
all higher-scoped fixtures (
module,package, andsession) definedas instance methods are now deprecated.
They suffer from the same issue the original deprecation only fixed for
class-scoped fixtures, see
10819and14011.#14808: Passing a non-string value to a
string-typed ini option now emits apytest.PytestRemovedIn10Warning. This affects[tool.pytest.ini_options]inpyproject.toml. In pytest 10 this will raise aTypeError, matching the behavior of the corresponding TOML config path.#7323: Passing
bytestoTerminalReporter.write_line()is now deprecated, pass astrinstead.New features
strict_markersis enabled, marker names used in-mexpressions are now validated against registered markers.parametrize_long_str_id_strategyconfiguration option to control how longstr/bytesparameter values are handled in auto-generated test IDs. Explicit IDs set viaids=[...]orpytest.param(..., id=...)are not affected. Available strategies:short(default, values over 100 chars fall back toargname+index),sha256(SHA-256 hex digest),legacy(keep full value), anddisallow(error requesting explicit IDs).Improvements in existing functionality
#10745: A
RecursionErrorwhose recursion origin cannot be located now shows only thefirst and last 10 stack frames, matching what pytest already did when locating
the origin failed outright. Previously the full traceback -- often around a
thousand near-identical frames -- was rendered, which was both slow and
unreadable. Pass
--full-traceto see every frame.#10745: The line numbers of a module's statements are now computed once per traceback
instead of once per traceback entry, which noticeably speeds up rendering
failures raised from large test modules.
#11418: The cached rewritten modules in
__pycache__are now invalidated by a hash ofthe source instead of its modification time, using the checked-hash pyc format
from
552.Timestamps make the cache useless wherever source files get fresh modification
times, most notably in CI: a checkout gives every file a new mtime, so a
restored cache is discarded in full and every test module is rewritten again.
Hashing the source costs roughly 15 microseconds per file and makes the cache
survive that.
Existing timestamp based caches are ignored and rewritten once.
#12624: The
pytest_pluginsvariable and thePYTEST_PLUGINSenvironment variable now also accept entry point names of installed plugins (e.g.xdist), in addition to importable module names, matching the behavior of the-pcommand-line option.As part of this change, plugins specified by entry point name through these mechanisms are now also listed in the
plugins:line of the terminal header (12615).Based on the original implementation by Marcel Telka in
12616.#12697: Warnings emitted while importing plugins through
-p,PYTEST_PLUGINS, or entry point autoloading are now captured, filtered, and reported like other warnings.#12860: Assertion diffs for
dict.items()anddict.keys()comparisons (>=,<=,>,<,==) now show which items are missing, the same way set comparisons do.#13354:
Node.get_closest_marker <_pytest.nodes.Node.get_closest_marker>now also accepts a~pytest.MarkDecoratoras itsdefault, for exampleitem.get_closest_marker("foo", pytest.mark.foo(1)), and returns the wrapped~pytest.Mark.Previously the only way to build a
defaultwas to instantiate~pytest.Markdirectly, which is private and warns.#13369: Improved the error from
pytest.RunResult.assert_outcomeswhen a plugin changes or removes pytest's standard terminal summary, and documented how to isolate output-changing plugins.#13431: Exposed
pytest.ParameterSetas the type of the return value ofpytest.param().This can be used in type annotations and
isinstancechecks.#13564: Issue a warning when fixtures are wrapped with a decorator that prevents
correct discovery, including
@classmethodabove@pytest.fixtureand@staticmethodabove@pytest.fixture. Put@pytest.fixtureabovethose decorators on test classes.
#14164: Exposed
pytest.Approxas the type of the return value ofpytest.approx().This can be used in type annotations and
isinstancechecks.#14463: Assertion diffs for mappings now match up keys the way the compared mappings match them themselves.
Key comparison goes through the mappings' key views instead of plain sets of their keys, so a mapping
with its own notion of key equivalence, such as case-insensitive header mappings, no longer
reports its common keys as missing on either side.
#14523: Large assertion comparison diffs are now built lazily and capped to the
truncation budget, so a huge diff is no longer formatted in full just to
be truncated. As a consequence, the truncation footer no longer
reports the exact number of hidden lines.
#14687: The default fd-level output capturing (
--capture=fd) now skips reading the capture buffer for tests which produce no output, reducing per-test overhead in large test suites.#14724:
--no-summarynow only applies directly to pytest's own summary.The flag no longer skips the
pytest_terminal_summaryhook, so third-partyplugins (for example coverage) can still write their terminal summaries.
#14751:
parser.addini <pytest.Parser.addini>now also accepts type expressions for itstypeargument, in addition to the existing string tags: the plain Python typesstr,bool,int,float, aLiteralof strings, and unions of these (for exampleint | strorint | Literal["auto"]).#14754:
pytest.approx()now rejects infinite relative tolerances fordatetime.timedeltavalues with a clearValueErrorinstead of raisingOverflowError.#14791: The
junit_family,junit_logging,junit_duration_report,console_output_style,empty_parameter_set_mark,assertion_text_diff_styleandtmp_path_retention_policyconfiguration options are now registered with the set of values they accept: an invalid value now fails with a clean usage error instead of being silently ignored or crashing later, andpytest --helplists the accepted values.config.getini <pytest.Config.getini>now raisespytest.UsageErrorinstead ofTypeErrororValueErrorwhen the value read from the configuration file does not match the registered type, so a bad value is always reported as a short usage error message instead of an internal error traceback. Asking for an option name that was never registered still raisesValueError.#15006:
pytest.approxnow emitspytest.PytestApproxDecimalToleranceWarningwhen arelorabstolerance is given as afloatthat cannot be represented exactly for a~decimal.Decimalcomparison, since such a tolerance is widened to the float's exact binary value.#14675, #14953, #15153, #15132: The
truncation_limit_lines,truncation_limit_chars,max_warnings,verbosity_assertions,verbosity_test_cases,verbosity_subtests,tmp_path_retention_count,log_level,log_cli_level,log_file_level,log_auto_indentandfaulthandler_timeoutconfiguration options now accept native integer (and, forlog_auto_indent, boolean) values in TOML configuration files, while still accepting strings for backward compatibility.log_file_modenow reports invalid values as a usage error.#15254:
tmp_pathandTempPathFactory.mktemp <pytest.TempPathFactory.mktemp>no longer list the whole base temporary directory on every call, which made sessions with many temporary directories quadratically slow. Numbers are now handed out from a per-prefix counter, skipping names that already exist.#4569:
Node.add_marker <_pytest.nodes.Node.add_marker>now stores a~pytest.Markinnode.keywords, matching what marks applied during collection store. Previously it stored a~pytest.MarkDecorator.#9436: Avoided formatting tracebacks for tests marked with
xfail(run=False).Bug fixes
#10128: Configured warning filters now apply to warnings emitted by
pytest_configurehooks.#10210:
pytest.approxnow raises aTypeErrorfor any nested container, notonly for one of the same type as its parent. Previously
approx([{"k": 1}])and
approx({"k": [1]})were accepted and then compared unequal to everyvalue, silently ignoring the tolerance, while
approx([[1]])correctlyreported that nesting is unsupported.
#10644:
monkeypatch.setattr()no longer leaves a new entry in the instance__dict__when it patches an attribute that the instance inherits from its class.Previously
undo()assigned the inherited value onto the instance, which shadowed the class attribute -- permanently freezing the result for descriptors that resolve dynamically.#1139: Fixed tracebacks showing
???instead of source lines for code compiled with a filename relative to a directory other than the current working directory -- e.g. compiled Cython modules, when running pytest from a subdirectory of the project root.The source lookup now falls back to searching
sys.pathfor such filenames, as the standardtracebackmodule does.#11502: The
rootdiris no longer derived from a configuration file that is not a regular file, such as--config-file=/dev/null.#11783: Plugins installed in editable mode (
660) are marked for assertion rewriting again.Such installs do not record the package's Python files in the distribution metadata, so pytest found nothing to rewrite and assertions inside the plugin lost their introspection. The plugin's entry point is now used to locate the package in that case.
#11933:
pytest.warnsno longer re-emits unmatched warnings withmodule="warnings", which causedmodule-based warning filters to be applied to the wrong warnings. Sincewarnings.WarningMessagedoes not record the module a warning was emitted with, re-emitted warnings now use the standardwarnings.warn_explicitdefault of deriving the module from the warning's filename.#12175:
ExceptionInfo.exconly(tryshort=True) <pytest.ExceptionInfo.exconly>now strips theAssertionError:prefix of failedassertstatements for~pytest.ExceptionInfoobjects created bypytest.raises, and failures insideunittest.TestCase.subTestreport the same short crash line as regular tests.#12223: The
messageattribute of<failure>and<error>elements in--junitxmlreports is now shortened to whole lines within 500 characters. When something is dropped, it ends with a note pointing to the element text, which still holds the full report. Previously, very verbose assertion output (e.g. with-vv) produced attributes tens of thousands of characters long, which some XML parsers fail on.#12307: Fixed truncation of long collections (lists, dicts, sets, etc.) in the "message" part of failed assertions (as in
assert condition, msg) when using-vv: the message now uses the same unlimited repr as the rest of the assertion output, instead of eliding collection elements with....#12824: Custom command-line options now fail with a clear error when their implicit
destination conflicts with an existing option, avoiding silent overrides of
built-in options such as
-k.#13292: Fixed a stale rewritten module being used when a test file is modified twice
within the same second without changing its size -- the pyc header could only
record whole-second timestamps. The cache is now keyed on a hash of the source.
#14036:
__tracebackhide__is now respected inExceptionGrouptracebacks, both for the group itself and for its sub-exceptions.#14189: Nested usage of
caplog.filtering <pytest.LogCaptureFixture.filtering>no longer removes filters early if they were already present.#14412: Fixed incorrect timing information for subtests and parent tests when
console_output_style = "times".#14445: Assertion rewriting no longer evaluates walrus operator (
:=) expressions more than once, which reported results the test never computed when the expression had side effects.An operand evaluated before a later walrus is now reported with the value it actually saw, so
assert value != identity(value := value.lower())keeps Python's left-to-right order.[#14552
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.